package com.zh.elec.service.impl;

import java.util.List;

import com.zh.elec.dao.UsersDao;
import com.zh.elec.model.Users;
import com.zh.elec.service.UsersService;

/**
 * 用户
 * @author scy
 *
 */
public class UsersServiceImpl implements UsersService {
	
	private UsersDao usersDao;

	@Override
	public Object save(Users obj) {
		return usersDao.save(obj);
	}

	@Override
	public Object update(Users obj) {		
		return usersDao.update(obj);
	}

	@Override
	public Object getObjById(Users obj) {
		return usersDao.getObjById(obj);
	}

	@Override
	public Object del(Users obj) {
		return usersDao.del(obj);
	}

	@Override
	public List<Users> find(String hql) {
		return usersDao.find(hql);
	}

	public UsersDao getUsersDao() {
		return usersDao;
	}

	public void setUsersDao(UsersDao usersDao) {
		this.usersDao = usersDao;
	}

	@Override
	public List<Users> findByName(String name, Object value) {
		return this.usersDao.findByName(name, value);
	}
}
